Skip to content

Fix duplicated query parameters during HAR validation - #189

Merged
daveshanley merged 1 commit into
mainfrom
fix/harific-query-duplication
Oct 30, 2026
Merged

daveshanley merged 1 commit into
mainfrom
fix/harific-query-duplication

Conversation

@daveshanley

Copy link
Copy Markdown
Member

HAR requests that include query parameters in both the URL and queryString metadata currently produce corrupted query values and false validation errors. Adopt Harific's merged fix and its queryString-only compatibility follow-up by pinning v0.0.7-0.20261021212734-e3736d6b7824 (e3736d6b7824d36b8b02fcde0303561b2340d42d). v0.0.6 remains the latest release, so this uses a reproducible pseudo-version without publishing a release.

Adds a regression through ValidateHARWithResult covering URL plus metadata, queryString-only input, repeated URL parameters, and rejection of an invalid enum value. The first two cases fail with v0.0.6 and pass with the new dependency.

Validation: go test ./har -count=1; go test ./...; npm ci and npm run build in ui; go build; go mod verify; git diff --check. All passed. Full tests were rerun with localhost listener access after the sandbox blocked a proxy test.

Related: pb33f/harific#9

@daveshanley
daveshanley marked this pull request as ready for review October 30, 2026 22:57
@daveshanley
daveshanley merged commit fb58e57 into main Oct 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant